package main

import (
	"log"

	awxGo "github.com/Colstuwjx/awx-go"
)

func main() {
	var (
		yourJobTemplateId = 9
		yourInventoryId   = 1
	)

	awx := awxGo.NewAWX("http://192.168.64.220", "admin", "password", nil)
	result, err := awx.JobTemplateService.Launch(yourJobTemplateId, map[string]interface{}{
		"inventory": yourInventoryId,
	}, map[string]string{})
	if err != nil {
		log.Fatalf("Lauch err: %s", err)
	}

	log.Println("Launch Job Template: ", result)
}
